<?php /* Smarty version Smarty-3.1.21-dev, created on 2014-12-18 08:55:10
         compiled from "template\page\order.html" */ ?>
<?php /*%%SmartyHeaderCode:1269548bb9ad263557-01162567%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f95d7a36178261135b59b033e109e4716126d7b8' => 
    array (
      0 => 'template\\page\\order.html',
      1 => 1418889307,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1269548bb9ad263557-01162567',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_548bb9ad263551_46693382',
  'variables' => 
  array (
    'pro' => 0,
    's' => 0,
    'cookie' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_548bb9ad263551_46693382')) {function content_548bb9ad263551_46693382($_smarty_tpl) {?><div id="page-wrapper">
<h4>Daftar Pesanan ON_Store</h4>

<table class="table">
    <tr>
        <th>Tanggal</th>
        <th>Status</th>
        <th>Produk</th>
        <th>Harga</th>
        <th></th>   
    </tr>   
    <?php  $_smarty_tpl->tpl_vars['s'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['s']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['pro']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['s']->key => $_smarty_tpl->tpl_vars['s']->value) {
$_smarty_tpl->tpl_vars['s']->_loop = true;
?>
    <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['s']->value['tgl'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['s']->value['status'];?>
</td>
        <td><img src="<?php echo $_smarty_tpl->tpl_vars['s']->value['img'];?>
" width='200px'></td>
        <td><?php echo $_smarty_tpl->tpl_vars['s']->value['harga'];?>
</td>        
        <td>
            <a href="order.php?a=del&idproduk=<?php echo $_smarty_tpl->tpl_vars['s']->value['idproduk'];?>
&idmember=<?php echo $_smarty_tpl->tpl_vars['cookie']->value['c_idm'];?>
" onclick = "myFunction()" class="btn btn-small btn-warning">Batal</a>
        </td>
    </tr>
    <?php } ?>
    <tr><th>Total</th>
        <th></th>
        <th></th>
        <th>AAAAA</th>
    </tr>
</table>

<?php echo '<script'; ?>
>
function myFunction() {
    alert("Pemesanan dihapus");
}
<?php echo '</script'; ?>
>

</div>
<?php }} ?>
